package com.ruoyi.project.demo.course.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.demo.arrange.domain.CourseArrange;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.List;

/**
 * 知识管理对象 db_course
 *
 * @author demo
 * @date 2020-04-19
 */
public class Course extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * null
     */
    private Long id;

    /**
     * 知识名称
     */
    @Excel(name = "知识名称")
    private String name;

    /**
     * 知识内容
     */
    @Excel(name = "知识内容")
    private String content;

    /**
     *
     */
    @Excel(name = "")
    private Long userId;

    /**
     * 图片
     */
    @Excel(name = "图片")
    private String pic;

    /**
     * 收费
     */
    @Excel(name = "收费")
    private Double cost;

    /**
     * 适合人群
     */
    @Excel(name = "适合人群")
    private Integer type;

    /**
     * 最大预约人数
     */
    @Excel(name = "最大预约人数")
    private Long maxNum;

    /**
     * 当前预约人数
     */
    @Excel(name = "当前预约人数")
    private Long curNum;
    private Integer num;

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    private List<CourseArrange> arrangeList;

    public List<CourseArrange> getArrangeList() {
        return arrangeList;
    }

    public void setArrangeList(List<CourseArrange> arrangeList) {
        this.arrangeList = arrangeList;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getPic() {
        return pic;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    public Double getCost() {
        return cost;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setMaxNum(Long maxNum) {
        this.maxNum = maxNum;
    }

    public Long getMaxNum() {
        return maxNum;
    }

    public void setCurNum(Long curNum) {
        this.curNum = curNum;
    }

    public Long getCurNum() {
        return curNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("name", getName()).append("content", getContent()).append("userId", getUserId()).append("pic", getPic()).append("cost", getCost()).append("type", getType()).append("maxNum", getMaxNum()).append("curNum", getCurNum()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("updateTime", getUpdateTime()).append("updateBy", getUpdateBy()).toString();
    }
}
